package com.heima.pojo.dto;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiOperation;
import lombok.Data;

import javax.validation.constraints.NotBlank;

@ApiModel("新增地区参数模型")
@Data
public class Regiondto {
    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty("regionId")
    private Long id;
    @NotBlank(message = "地区名不能为空")
    @ApiModelProperty("地区名")
    private String regionName;
    @NotBlank(message = "描述不能为空")
    @ApiModelProperty("地区描述")
    private String remark;
}
